<?php 

require_once("form/index.php");

class ExampleForm extends Form {
	
	public function __construct(){
		parent::__construct(array(
			"name" => new CharField(),
			"age" => new IntegerField(),
			"gender" => new SelectField($this->genders()),
			"description" => new TextField(),
			"published" => new BooleanField()
		));
	}
	
	private function genders(){
		return array(
			new Option("", "Select"),
			new Option("F", "Female"),
			new Option("M", "Male")
		);
	}
	
}
